package routes

import (
	"tech-service/internal/app"

	"github.com/gin-gonic/gin"
	"gorm.io/gorm"
)

type RouterConfig struct {
	Router *gin.Engine
	DB     *gorm.DB
}

func NewRouterConfig(config *app.Application) *RouterConfig {
	return &RouterConfig{
		Router: config.Router,
		DB:     config.DB,
	}
}

func (r *RouterConfig) SetupRoutes() {
	NewUserRouter(r.Router, r.DB).SetupRoutes()
}
